<?php
/* @var $this TypeController */
/* @var $model Type */
$this->main_menu = MenuHelper::getArrayForMainMenu(false, false, false, true);

$this->widget('bootstrap.widgets.TbTabs', array(
	'type'=>'tabs', // 'tabs' or 'pills'
	'tabs'=>MenuHelper::getArrayForCoreDataMenu(),
));
?>

<?php
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'filter'=>$model,
    'fixedHeader' => true,
    'headerOffset' => 40, // 40px is the height of the main navigation at bootstrap
    'type'=>'striped bordered',
    'dataProvider' => $model->search(),
    'template' => '{items}{pager}', // 2nd way
	'columns'=>array(
        'name',
		array(
			'class'=>'CButtonColumn',
            'template'=>'{update}{delete}',
            'buttons'=>array(
            	'update'=>array(
            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/update.png',
            	),
            	'delete'=>array(
            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png',
            	),
            ),
		),
	),
));
?>

<div id="bottom">

<?php
$this->widget('bootstrap.widgets.TbButton',array(
    'label' => 'Kursart hinzufügen',
    'size' => 'medium',
    'url' => array('/type/create'),
));
?>

</div>
